//
//  AppDelegate.swift
//  StoreProject
//
//  Created by CYC on 1998/12/29.
//

import UIKit



@main
class AppDelegate: UIResponder, UIApplicationDelegate {
    
    
    
    var window: UIWindow?
    

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        
        self.initBaseDataAction()
        
        
        if #available(iOS 13.0, *) {
            
            
        } else {
            
            self.window = UIWindow.init(frame: UIScreen.main.bounds)
            self.window?.makeKeyAndVisible()
            kPManager.window = self.window
            kPManager.toLanuchAction()
        }
        
    
        return true
    }
    
    
    // MARK:一些项目的基本初始化
    @objc func initBaseDataAction() {
        
        
        // 适配
        if #available(iOS 11.0, *) {
            UIScrollView.appearance().contentInsetAdjustmentBehavior = .never
            UITableView.appearance().estimatedRowHeight = 0.0;
            UITableView.appearance().estimatedSectionHeaderHeight = 0.0;
            UITableView.appearance().estimatedSectionFooterHeight = 0.0;
        }
        
    }
    

}

